#include <benchmark/benchmark.h>
#include "fenv.h"
#include "util.h"

// 获取舍入方向模式
static void Bm_function_Fegetround(benchmark::State &state)
{

    for (auto _ : state)
    {
        benchmark::DoNotOptimize(fegetround());
    }

    state.SetBytesProcessed(state.iterations());
}

MUSL_BENCHMARK(Bm_function_Fegetround);